<div class="modal-header">
	<h3 class="modal-title">新增联系人配置</h3>
</div>
<div class="modal-body">
	<form role="form" name="tableForm" class="form-horizontal">
		<div class="form-group">
			<label for="input-ip" class="col-sm-2 control-label" style="width:124px">主机名称/IP:</label>
			<div class="col-md-9">
				<select class="selectpicker" id="ip_sel" style="width: 198px; height: 31px;" ng-model="selectedSite">
							<option ng-repeat="x in insertComponents" value={{x.ip}}>{{x.systemName}}/{{x.ip}}</option>
						</select>
			</div>
		</div>
		<div class="form-group">
			<label for="input-warncontact" class="col-sm-2 control-label" style="width:124px">预警联系人:</label>
			<div class="col-md-9">
				<input type="text" name="warncontact" class="form-control"
					id="input-warncontact" ng-model="insertComponent.warncontact"
					placeholder=""> 
			</div>
		</div>
		<div class="form-group" >
			<label for="input-gender" class="col-sm-2 control-label" style="width:124px">预警联系人类型:</label>
			<div class="col-md-9">
				<select class="selectpicker" id="warncontype_sel" style="width: 99px; height: 31px;" ng-model="insertComponent.warncontype">
							<option value="0" selected>邮件短信</option>
							<option value="1">邮件</option>
							<option value="2">短信</option>
						</select>
			</div>
		</div>
				<div class="form-group">
			<label for="input-warnphone" class="col-sm-2 control-label" style="width:124px">预警联系人电话:</label>
			<div class="col-md-9">
				<input name="warnphone" type="text" class="form-control" id="input-warnphone"
					ng-model="insertComponent.warnphone" placeholder="" >
			</div>
		</div>
				<div class="form-group">
			<label for="input-warnemail" class="col-sm-2 control-label" style="width:124px">预警联系人邮箱:</label>
			<div class="col-md-9">
				<input name="warnemail" type="text" class="form-control" id="input-warnemail"
					ng-model="insertComponent.warnemail" placeholder="">
			</div>
		</div>
		<div class="form-group">
			<label for="input-dangercontact" class="col-sm-2 control-label" style="width:124px">危险联系人:</label>
			<div class="col-md-9">
				<input name="dangercontact" type="text" class="form-control" id="input-dangercontact"
					ng-model="insertComponent.dangercontact" placeholder="" >
			</div>
		</div>
		<div class="form-group">
			<label for="input-dangercontype" class="col-sm-2 control-label" style="width:124px" >危险联系人类型:</label>
			<div class="col-md-9">
				<select class="selectpicker" id="dangercontype_sel" style="width: 99px; height: 31px;" ng-model="insertComponent.dangercontype">
							<option value="0" selected>邮件短信</option>
							<option value="1">邮件</option>
							<option value="2">短信</option>
						</select>
			</div>
		</div>
		<div class="form-group">
			<label for="input-dangerphone" class="col-sm-2 control-label" style="width:124px">危险联系人电话:</label>
			<div class="col-md-9">
				<input name="dangerphone" type="text" class="form-control" id="input-dangerphone"
					ng-model="insertComponent.dangerphone" placeholder="" >
			</div>
		</div>
		<div class="form-group">
			<label for="input-dangeremail" class="col-sm-2 control-label" style="width:124px">危险联系人邮箱:</label>
			<div class="col-md-9">
				<input name="dangeremail" type="text" class="form-control" id="input-dangeremail"
					ng-model="insertComponent.dangeremail" placeholder="">
			</div>
		</div>
		
		<div class="form-group">
			<label for="input-seriouscontact" class="col-sm-2 control-label" style="width:124px">严重联系人:</label>
			<div class="col-md-9">
				<input name="seriouscontact" type="text" class="form-control" id="input-seriouscontact"
					ng-model="insertComponent.seriouscontact" placeholder="" >
			</div>
		</div>
		<div class="form-group">
			<label for="input-seriouscontype" class="col-sm-2 control-label" style="width:124px">严重联系人类型:</label>
			<div class="col-md-9">
				<select class="selectpicker" id="seriouscontype_sel"  style="width: 99px; height: 31px;" ng-model="insertComponent.seriouscontype">
							<option value="0" selected = "selected">邮件短信</option>
							<option value="1">邮件</option>
							<option value="2">短信</option>
						</select>
			</div>
		</div>
		<div class="form-group">
			<label for="input-seriousphone" class="col-sm-2 control-label" style="width:124px">严重联系人电话:</label>
			<div class="col-md-9">
				<input name="seriousphone" type="text" class="form-control" id="input-seriousphone"
					ng-model="insertComponent.seriousphone" placeholder="" >
			</div>
		</div>
		<div class="form-group">
			<label for="input-seriousemail" class="col-sm-2 control-label" style="width:124px">严重联系人邮箱:</label>
			<div class="col-md-9">
				<input name="seriousemail" type="text" class="form-control" id="input-seriousemail"
					ng-model="insertComponent.seriousemail" placeholder="">
			</div>
		</div>
	</form>
</div>
<div class="modal-footer">
	<button class="btn btn-primary" type="button" ng-click="save()">确认</button>
	<button class="btn btn-warning" type="button" ng-click="cancel()">取消</button>
</div>